<?php 
include('../session/detect.php');
switch(kto()) {
	case 1:
		header("Location: ../pacjent_panel.php");
		break;
	case 2:
		header("Location: ../administrator_panel.php");
		break;
	case 3:
		header("Location: ../lekarz_panel.php");
		break;
	case 4:
		header("Location: ../kierownik_panel.php");
		break;
	case 0:
		header("Location: ../index.php");
		break;
}
?>